
package com.shop.cloud.upms.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;


/**
 * 租户套餐充值记录
 *
 * @author
 * @date 2023-12-27 11:17:30
 */
@Data
@TableName("sys_tenant_package_recharge")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "租户套餐充值记录")
public class SysTenantPackageRecharge extends Model<SysTenantPackageRecharge> {
    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "主键不能为空")
    @Schema(description = "主键")
    private String id;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新
     */
    @Schema(description = "更新")
    private LocalDateTime updateTime;
    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @Schema(description = "逻辑删除标记（0：显示；1：隐藏）")
    private String delFlag;
    /**
     * 租户ID
     */
    @NotNull(message = "租户ID不能为空")
    @Schema(description = "租户ID")
    private String tenantId;
    /**
     * 租户套餐ID
     */
    @NotNull(message = "租户套餐ID不能为空")
    @Schema(description = "租户套餐ID")
    private String packageId;
    /**
     * 租户套餐费用ID
     */
    @NotNull(message = "租户套餐费用ID不能为空")
    @Schema(description = "租户套餐费用ID")
    private String packageCostId;
    /**
     * 数量
     */
    @NotNull(message = "数量不能为空")
    @Schema(description = "数量")
    private Integer count;
    /**
     * 支付金额
     */
    @NotNull(message = "支付金额不能为空")
    @Schema(description = "支付金额")
    private BigDecimal paymentPrice;
    /**
     * 是否支付0、未支付 1、已支付
     */
    @NotNull(message = "是否支付0、未支付 1、已支付不能为空")
    @Schema(description = "是否支付0、未支付 1、已支付")
    private String isPay;
    /**
     * 支付类型1、微信支付；2、支付宝支付
     */
    @Schema(description = "支付类型1、微信支付；2、支付宝支付")
    private String paymentType;
    /**
     * 付款时间
     */
    @Schema(description = "付款时间")
    private LocalDateTime paymentTime;
    /**
     * 支付交易ID
     */
    @Schema(description = "支付交易ID")
    private String transactionId;
    /**
     * 商户订单号
     */
    @Schema(description = "商户订单号")
    private String tradeNo;

}
